package vip.xiaonuo.biz.modular.rewardslog.entity;


import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 奖励记录(RewardsLog)表实体类
 *
 * @author h
 * @since 2025-11-21 14:24:34
 */
@Data
@TableName("tb_rewards_log")
@ApiModel(value = "奖励记录", description = "奖励记录")
public class RewardsLog implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "ID")
    @TableId(type = IdType.ASSIGN_ID)
    private String rewardsLogId;

    @ApiModelProperty(value = "奖励单编号")
    private String rewardsCode;

    @ApiModelProperty(value = "版本号")
    @Version
    @TableField(fill = FieldFill.INSERT)
    private Integer version;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "奖励人员小程序id")
    private String userId;

    @ApiModelProperty(value = "奖励类型 0：上报奖励 1：推荐奖励 2：盯防奖励3:主动红包")
    private Integer rewardsType;

    @ApiModelProperty(value = "奖励金额")
    private Integer rewards;

    @ApiModelProperty(value = "挂接任务id")
    private String taskId;

    @ApiModelProperty(value = "上报隐患id")
    private String reportId;

    @ApiModelProperty(value = "省")
    private String province;

    @ApiModelProperty(value = "市")
    private String city;

    @ApiModelProperty(value = "区")
    private String district;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "账单状态")
    private String detailStatus;

    @ApiModelProperty(value = "奖励明细单号（批量发送）")
    private String rewardDetail;

}
